import { createApp } from 'vue'
// import './style.css'
import './css/reset.css'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//引入element图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//配置国际化
import zhCn from 'element-plus/es/locale/lang/zh-cn'
//引入路由
import router from './router/index'
//引入仓库
import pinia from './stores/index'
//获取应用实例对象
const app = createApp(App)
//安装pinia
app.use(pinia)
//安装路由
app.use(router)
//element-plus国际化配置
app.use(ElementPlus, {
    locale: zhCn,
})
//全局注册图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
//安装element-plus的插件
app.use(ElementPlus)
app.mount('#app')
